package homework;

public class ExtendsTest2 {
    public static void main(String[] args) {
        Student2 zs =new Student2("张三",20,"山东","ASD250","22333");
        zs.eat();
        zs.sleep();
        zs.sayhi();
        zs.study();

        Teacher2 ls=new Teacher2("李四",35,"新疆",6000);
        ls.eat();
        ls.sleep();
        ls.sayhi();
        ls.teach();

        Doctor2 ww =new Doctor2("王五",40,"山西","院长");
        ww.eat();
        ww.sleep();
        ww.sayhi();
        ww.cut();
    }
}
